% ECGPRINT      Function for plotting the signal with different filter 
%               response
%
% First plot:   raw signal
% Second plot:  signal after chebyshev filter
% Third plot:   signal after notch filter
% Forth plot:   signal after sgoglay filter
%
% See also: 
% Copyright: Group 8
% Modified at 20th Oct 2010
%-------------------------------------------------------------------------
function Print_ecg = ecgprint(data,cheby,notch,sgo)
%% Finding time from sampling rate
time = 0:1/550:length(data)/550 - 1/550;
%% Opening another figure
figure(3);
%% Subplot 1
subplot(411);
plot(time,data)
set(gca,'YTickLabel','');   % Hiding Y-axis
xlabel('time (s)');

%% Subplot 2
subplot(412);
plot(time,cheby)
set(gca,'YTickLabel','');   % Hiding Y-axis
xlabel('time (s)');

%% Subplot 3
subplot(413);
plot(time,notch)
set(gca,'YTickLabel','');   % Hiding Y-axis
xlabel('time (s)');

%% Subplot 4
subplot(414);
plot(time,sgo)
set(gca,'YTickLabel','');   % Hiding Y-axis
xlabel('time (s)');
